import { createRouter, createWebHistory } from 'vue-router'

export const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: "/",
      name: "/",
      component: () => import("@/views/index.vue"),
    },
    {
      path: "/dragCode",
      name: "/dragCode",
      component: () => import("@/views/dragCode/index.vue"),
      meta: { title: "代码生成" }
    },
    {
      path: "/rtc",
      name: "/rtc",
      component: () => import("@/views/RTC/rtc.vue"),
      meta: { title: "实时通信" }
    }
  ]
})